import request from '@/utils/request'

// 查询充值记录列表
export function listRecharge_record(query) {
  return request({
    url: '/system/recharge_record/list',
    method: 'get',
    params: query
  })
}

// 查询充值记录详细
export function getRecharge_record(rechargeRecordId) {
  return request({
    url: '/system/recharge_record/' + rechargeRecordId,
    method: 'get'
  })
}

// 新增充值记录
export function addRecharge_record(data) {
  return request({
    url: '/system/recharge_record',
    method: 'post',
    data: data
  })
}

// 修改充值记录
export function updateRecharge_record(data) {
  return request({
    url: '/system/recharge_record',
    method: 'put',
    data: data
  })
}

// 删除充值记录
export function delRecharge_record(rechargeRecordId) {
  return request({
    url: '/system/recharge_record/' + rechargeRecordId,
    method: 'delete'
  })
}
